Skip to content

Report min finalized head for traceless datasets NET-888#128

Open
kalabukdima wants to merge 1 commit into
masterfrom
fix-traceless-finalized-head
Open

Report min finalized head for traceless datasets NET-888#128
kalabukdima wants to merge 1 commit into
masterfrom
fix-traceless-finalized-head

Conversation

@kalabukdima

Copy link
Copy Markdown
Contributor

Normally, traceless dataset variants should be ahead of traceful ones. But due to finalization bugs in RPCs, sometimes they're the other way.
Returning the minimum of the two heads to fix the invariant: "once a block is returned by /finalized-head, it should be available at /finalized-stream on that portal". It's important for the RPC proxy's correctness.

The traced and traceless hotblocks variants finalize independently, so
advertising only the traced head let a traceless stream head-wait and 204
when it hadn't finalized that far yet. Report the minimum of both heads.

Part of NET-888
@kalabukdima kalabukdima requested a review from mo4islona July 1, 2026 09:16
@kalabukdima kalabukdima self-assigned this Jul 1, 2026
@mo4islona

mo4islona commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What are finalization bugs in RPCs?

This change may affect Squid SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants